@*项目基本信息*@
<body>
    <div id="ui_pm_layout" class="easyui-layout" data-options="fit:true,border:false">
        @*<div data-options="region:'north',split:true,border:true,collapsed:false" title="项目基本信息" style="height:104px;">
                <div id="ui_pm_search">

                </div>
            </div>*@
        <div data-options="region:'center',border:false">
            <div class="easyui-panel" title="基本信息" style="width:100%;height:auto;padding:10px;">

                <div>
                    <input type="hidden" name="ProjectID" id="ProjectID" />
                    <input type="text" class="easyui-textbox" id="ProjectNo" data-options="width:200, label:'项目编码',labelPosition:'before',labelWidth:80,labelAlign:'right',readonly:false" />
                    <input type="text" class="easyui-textbox" id="ProjectName" data-options="width:300,label:'项目名称',labelPosition:'before',labelWidth:80,labelAlign:'right',readonly:false" />
                    <input name="mainItemCode" id="mainItemCode" class="easyui-combox" data-options="width:200,label:'主物料代码:',labelPosition:'before',labelWidth:80,labelAlign:'right'">
                 </div>
               
                <div >
                    <input type="text" class="easyui-textbox" id="ProjectManager" data-options="width:200,label:'项目管理员',labelPosition:'before',labelWidth:80,labelAlign:'right',readonly:false" />
                    <input type="text" class="easyui-textbox" id="ProjectClerk" data-options="width:200,label:'业务员',labelPosition:'before',labelWidth:80,labelAlign:'right',readonly:false" />
                    <input class="easyui-combobox" id="comDepartmentList" name="comDepartmentList" data-options="width:200,label:'部门',labelPosition:'before',labelWidth:80,labelAlign:'right', required:true, valueField: 'DepartmentName', textField: 'DepartmentName',url: '/Project/SelectDepartment',readonly:false ">
  </div>
           
                <div >                
                    <input id="Remark" class="easyui-textbox" data-options="width:600,height:100,label:'项目描述',labelPosition:'before',labelWidth:80,labelAlign:'right',multiline:true,readonly:false">
                </div>   
               
                @*<div >
                    <input type="text" id="UpdateBy" class="easyui-textbox" data-options="width:200,label:'更新人',labelAlign:'right',readonly:true" />
                    <input type="text" id="UpdateTime" class="easyui-textbox" data-options="width:100,readonly:true" />
                    <input type="text" id="CreateBy" class="easyui-textbox" data-options="width:200,label:'创建人',labelAlign:'right',readonly:true" />
                    <input type="text" id="CreateTime" class="easyui-textbox" data-options="width:100,readonly:true">
                </div>*@
                 
            </div>
        </div>
    </div>
	<script type="text/javascript">
		$(function(){
			$('#mainItemCode').combobox({
			    mode: 'remote',  //模式： 远程获取数据
			    url: '/Common/AutoComplete_ItemCode',  //远程数据请求地址
			    valueField: 'FName', 　　//value对应的属性字段
			    textField: 'FNumber',　　　 //text对应的属性字段
			    formatter: function (row) {
			        var opts = $(this).combobox('options');
			        return row[opts.textField] + " " + row[opts.valueField];
			    },
			    onChange: function (newValue, oldValue) {
			       // $("#mainItemName").textbox('setValue', newValue); 
			    } 
			});
			
		})
	</script>
</body>


